package com.yizhubao.app.activitys;

import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;

import com.yizhubao.app.MainActivity;
import com.yizhubao.app.R;
import com.yizhubao.app.app.YZBApp;
import com.yizhubao.app.base.BaseActivityToolBar;
import com.yizhubao.app.customviews.BottomDialog;
import com.yizhubao.app.utils.Constants;

import butterknife.BindView;
import butterknife.OnClick;
import cn.jzvd.JzvdStd;

/**
 * 创建人: PACY
 * 创建时间: 6/6/21 10:25 AM
 * 邮箱: pengwwe457621023@qq.com
 * 类描述: 账号禁用
 */
public class ProhibitActivity extends BaseActivityToolBar {
    @BindView(R.id.base_left_icon)
    ImageView leftIcon_iv;
    int type=1;
    @Override
    protected int setContentLayout() {
        return R.layout.activity_prohibit;
    }

    @Override
    protected void initView() {
        setTitleOnLeftIcon(R.drawable.icon_back,"");
        if(getIntent().getExtras()!=null){
            type=getIntent().getExtras().getInt("type");
        }
        if(type!=1){
            leftIcon_iv.setOnClickListener(v -> {
                YZBApp.getInstance().exit();
            });
        }

    }

    @Override
    protected void initData() {

    }

    @Override
    public void onBackPressedSupport() {
        super.onBackPressedSupport();
        if(type!=1){
            YZBApp.getInstance().exit();
        }

    }

    @OnClick(value = {R.id.submit_tv})
    public void click(View v){
        if(v.getId()==R.id.submit_tv){
            Bundle bundle=new Bundle();
            bundle.putString("title","联系客服");
            bundle.putString("url", Constants.LIANXIKEFU);
            startActivity(ProhibitActivity.this, WebActivity.class,bundle);
        }
    }
}